import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_app/NormalNumber.dart';
import 'package:flutter_app/NumberButton.dart';

class NumberButtonLine extends StatelessWidget {
  List<Number> array;

  NumberButtonLine({@required this.array}) : assert(array != null);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Row(children: <Widget>[
        NumberButtorn(
            number: array[0],
            pad: EdgeInsets.only(bottom: 4.0)
        ),
        NumberButtorn(
            number: array[1],
            pad: EdgeInsets.only(left: 4.0, right: 4.0, bottom: 4.0)),
        NumberButtorn(
            number: array[2],
            pad: EdgeInsets.only(bottom: 4.0)
        )
      ]),
    );
  }
}
